//
//  ExamineBController.m
//  DMGME
//
//  Created by ihope99 on 15/9/8.
//  Copyright (c) 2015年 GYP. All rights reserved.
//

#import "ExamineBController.h"
#import "DMRegistCController.h"

@interface ExamineBController ()

@end

@implementation ExamineBController

- (void)viewDidLoad {
    [super viewDidLoad];
    [self setTitle:@"注册-身份审核"];
    self.view.backgroundColor = [UIColor whiteColor];
    [self AddLeftImageBtn:[UIImage imageNamed:@"fanhui_03 2"]target:self action:@selector(GoBack)];
    [_idNameAndPhoneLable setText:[NSString stringWithFormat:@"%@:%@",_mRealname,_mMobile]]
    ;
    [_contactCustomerServiceBtn addTarget:self action:@selector(contactCustomerServiceBtnClick) forControlEvents:UIControlEventTouchUpInside];
    [_contactAgentBtn addTarget:self action:@selector(contactAgentBtnClick) forControlEvents:UIControlEventTouchUpInside];
    [_reChooseAgentBtn addTarget:self action:@selector(reChooseAgentBtnClick) forControlEvents:UIControlEventTouchUpInside];
    
}

//联系客服
- (void)contactCustomerServiceBtnClick{
    UIWebView * callWebview = [[UIWebView alloc] init];
    [callWebview loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"tel://0519-88138239"]]];
    [self.view addSubview:callWebview];
}

//联系代理商
- (void)contactAgentBtnClick{
    UIWebView * callWebview = [[UIWebView alloc] init];
    [callWebview loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"tel://%@",_mAgentPhone]]]];
    [self.view addSubview:callWebview];
//    NSLog(@"tele == %@",[NSURLRequest requestWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"tel://%@",_mAgentPhone]]]);
}

//重新选择代理商
- (void)reChooseAgentBtnClick{
    DMRegistCController *dmReVC = [[DMRegistCController alloc]initWithNibName:@"DMRegistCController" bundle:nil];
    dmReVC.reChooseSign = @"re";
    dmReVC.shopId = _shopId;
    [self.navigationController pushViewController:dmReVC animated:YES];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
 
 UIWebView * callWebview = [[UIWebView alloc] init];
 [callWebview loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"tel://010-22338765"]]];
 [self.view addSubview:callWebview];
 
 
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
